﻿@using TinyMoocSite.ViewModels
@model ReplyDiscussForm

@{
    ViewBag.Title = "回复帖子";
    Layout = "~/Views/Student/CoursePageLayout.cshtml";
}


@section Discuss { active }

@section ExtensionStyle
{
    <link href="~/Content/simditor.css" rel="stylesheet" />
}

@section ExtensionScript
{
    <script src="~/Scripts/module.min.js"></script>
    <script src="~/Scripts/hotkeys.min.js"></script>
    <script src="~/Scripts/uploader.min.js"></script>
    <script src="~/Scripts/simditor.min.js"></script>


    <script>
        var editor = new Simditor({
            textarea: $('#form-content')
            // optional options
        });
    </script>
}

@section RightContainer
{
    <h4>交流空间&raquo;回复帖子</h4><hr />
    <form role="form" action="/Student/DoReplyDiscuss" method="post" enctype="multipart/form-data" class="update-form form-horizontal">
        <input type="hidden" name="Id" class="form-control" id="form-id" value="@Model.Id">
        <input type="hidden" name="PostId" class="form-control" id="form-postid" value="@Model.PostId">

        <div class="form-group">
            <label for="form-name" class="col-sm-2 control-label">问题标题</label>
            <div class="col-sm-10">
                <input type="text" name="PostTitle" class="form-control" id="form-name" value="@Model.PostTitle" readonly>
            </div>
        </div>

        <div class="form-group">
            <label for="form-content" class="col-sm-2 control-label">我的回复</label>
            <div class="col-sm-10">
                <textarea name="Content" class="form-control" id="form-content" rows="15"></textarea>
            </div>
        </div>

        <br /><br />
        <div class="text-center">
            <button type="submit" class="btn btn-default">创建</button>
            &nbsp;&nbsp;
            <button type="button" class="btn btn-default" onclick="history.back();">返回</button>
        </div>
        <br /><br />
    </form>
}

